﻿using System;
using System.CodeDom.Compiler;

namespace SWF
{
    public struct PrimitiveNull : IPrimitive
    {
        public PrimitiveType PrimitiveType { get { return PrimitiveType.Null; } }
        public object Value { get { return null; } }
        public int Length { get { return 0 + 1; } }
        public PrimitiveNull(SwfReader r)
        {
        }

        public void ToFlashAsm(IndentedTextWriter w)
        {
            w.Write("NULL");
        }
    }
}
